package bf.util;

import bf.program.CompiledProgram;

public class MyClassLoader extends ClassLoader {

	static MyClassLoader myClassLoader = new MyClassLoader();
	
	@SuppressWarnings("unchecked")
	public static Class<CompiledProgram> load(String name, byte[] code) throws ClassFormatError {
		return (Class<CompiledProgram>) myClassLoader.defineClass(name, code, 0, code.length);
	}
}
